package com.jian.android.autojipai.app.helper;

import android.util.Log;

public class LogTool {
    private boolean isOpen;

    public static class LogToolInstance {
        private static final LogTool instance = new LogTool();

        private LogToolInstance() {
        }
    }

    private LogTool() {
        this.isOpen = true;
    }

    public static LogTool getInstance() {
        return LogToolInstance.instance;
    }

    public void printLog(String str, String str2) {
        if (this.isOpen) {
            Log.e(str, str2);
        }
    }
}
